#ifndef NEWSQLFLAYERDIALOG_H
#define NEWSQLFLAYERDIALOG_H

#include <QDialog>
#include <QFormLayout>
#include <QFrame>
#include <QComboBox>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>

#include "Geo/geometry/geogeometry.h"
#include "util/appevent.h"
namespace Ui {
class NewSQLFLayerDialog;
}

class NewSQLFLayerDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NewSQLFLayerDialog(QWidget *parent = nullptr);
    ~NewSQLFLayerDialog();

public:
    void iniMainDialog();
signals:
    void sigAddNewSQLFLayer(const QString &layerName,GeometryType geomType);

private slots:
    void on_btnOK_clicked();
    void on_btnCancel_clicked();
private:
    QComboBox *comboFlayerType;
    QLineEdit *editFlayerName;
    QPushButton *btnOK;
    QPushButton *btnCancel;
private:
    Ui::NewSQLFLayerDialog *ui;
};

#endif // NEWSQLFLAYERDIALOG_H
